<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--<script type="text/javascript" src="script/sms_asset_script.js"></script>-->
</head>
<body>
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
		<tr>
			<th bgcolor="#cff8ff" valign="center" height="40px" align="center"><font size="4">자산 보안 등급평가</font></th>
		</tr>
		<tr>
			<td align="right"><!-- 버튼 -->
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						 <td><a href="#" onclick="javascript: logout()"><img src="img/btn_search.gif" /></a></td>
						   <td><a href="#" onclick="javascript: assetWritePage('assetSecurity_insertPage')"><img src="img/write_btn.jpg" /></a></td>
						  <td><a href="#" onclick="javascript: assetDelete()"><img src="img/delete_btn.jpg" /></a></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
		<!-- 내용 테이블 -->
		<td>
		
			<table class="tb01" cellPadding="0" border="0" width="100%">
				<colgroup>
					<col width="40px">
					<col width="50px">
					<col width="150px">
					<col>
					<col width="15px">
				</colgroup>
				<thead>			
				<tr height="25px">
					<th><input type='checkbox' name='checkAll' onclick="javascript: selectAll()" style="cursor:pointer"></input></th>
					<th>NO</th>
					<th>보안등급</th>
					<th>내용</th>
					<th></th>
				</tr></thead>
				<tbody>
				</tbody>
			</table>	
			<!-- 스크롤 생성 -->
			<div style="overflow:auto; overflow-x: hidden; width: 100%; height: 393px">	
			    <table class="tb01" cellPadding="0" border="0" width="100%">
			    <colgroup>
			    	<col width="40px">
				    <col width="50px">
				    <col width="150px">
				    <col>
				    <col width="15px">
				</colgroup>
			    <tbody>    
                    <c:choose>
                    	<c:when test="${fn:length(list)!= 0}">
                    	<form name="assetSecurityDelForm" action="assetAction.do" method="get">
                    	<input type="hidden" name="mode" value="assetSecurity_delete"></input>
                    	<input type="hidden" name="gubun" value="1"></input>
                    	<c:forEach var="list" items="${requestScope.list}" varStatus="status">
                    		<tr height="20">
                    			<td align="center"><input type="checkbox" name="check" id="check${status.index+1 }" style="cursor:pointer" value='${list.no}'></input></td>
                    			<td>
                    				${list.no }
                    			</td>
                    			<td style="text-overflow:ellipsis;overflow:hidden;">
                    				<nobr><a href="assetAction.do?mode=assetSecurity_updatePage&no=${list.no }" class="nor" title='${list.sc_name }'>${list.sc_name }</a></nobr>
                    			</td>                    			
                    			<td class="alignleft"  style="text-overflow:ellipsis;overflow:hidden;">
                    				<nobr>${list.sc_detail }</nobr>
                    			</td>
	   					 	<td class="alignright"></td>
                    		</tr>
                    	</c:forEach>
                    	</form>
                    	</c:when>
                    	<c:otherwise>
                    		<tr>
								<td align="center" colspan="5">-no data-</td>
							</tr>
                    	</c:otherwise>
                    	</c:choose>
                    </tbody>
			</table>
			</div>
			</td>
		</tr>
	</table>
</body>
</html>